package com.nuit.cxl.ymltest.controller;


import com.nuit.cxl.ymltest.EmailProp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    EmailProp emailProp;

    @RequestMapping("/hello")
    public String hello(String name) {
        System.out.println("name: " + name);

        System.out.println(emailProp.getUser());
        return "Hello " + emailProp.getHost();
    }
}




